golang.org/x/tools/go/packages.loaderPackage.goVersion (field)
4 uses
golang.org/x/tools/go/packages (current package)
packages.go#L688: goVersion int // minor version number of go command on PATH
packages.go#L804: goVersion: response.GoVersion,
packages.go#L1145: if _, err := fmt.Sscanf(runtime.Version(), "go1.%d", &runtimeVersion); err == nil && runtimeVersion < lpkg.goVersion {
packages.go#L1150: Msg: fmt.Sprintf("This application uses version go1.%d of the source-processing packages but runs version go1.%d of 'go list'. It may fail to process source files that rely on newer language features. If so, rebuild the application using a newer version of Go.", runtimeVersion, lpkg.goVersion),